package com.xyz.mockapi.mainlineorder.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xyz.mockapi.common.entity.OnlineProductEntity;
import com.xyz.mockapi.common.mapper.OnlineProductMapper;
import com.xyz.mockapi.mainlineorder.service.OnlineProductService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OnlineProductServiceImpl
        extends ServiceImpl<OnlineProductMapper, OnlineProductEntity>
        implements OnlineProductService {
    @Override
    public List<OnlineProductEntity> listByItemcode(String itemcode) {
        return lambdaQuery().eq(OnlineProductEntity::getFItemcode, itemcode).list();
    }
}